package com.lhkj.ct.meta.modules.psychology.model.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.lhkj.ct.base.enums.DeleteStatus;
import com.lhkj.ct.base.mybatis.IBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 团体报告表
 * </p>
 *
 * @author jobob
 * @since 2023-10-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="TblScaleGroupReport对象", description="团体报告表")
public class TblScaleGroupReport implements IBaseEntity<String> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "团体报告")
    private String id;

    @NotBlank(message = "请选择量表")
    @ApiModelProperty(value = "量表id")
    private String scaleId;

    @NotBlank(message = "请输入报告名称")
    @ApiModelProperty(value = "报告名称")
    private String reportName;

    @ApiModelProperty(value = "word报告")
    private String wrl;

    @ApiModelProperty(value = "pdf报告")
    private String prl;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime createTime;

    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "删除状态")
    private DeleteStatus delFlag;

    @TableField(exist = false)
    @NotEmpty(message = "请选择报告")
    @ApiModelProperty(value = "选择的个体报告")
    private List<String> reportIds;

    @TableField(exist = false)
    @ApiModelProperty(value = "量表名称")
    private String scaleName;

}
